import numpy as np
w = []

# base = 0.03
# for i in range(256):
#     if i == 0 or i == 255:
#         w.append(1e-10)
#     elif i <= 15:
#         w.append(pow(base, (4.5 - np.log2(i + 1))))
#     elif i >= 240:
#         w.append(pow(base, (4 - np.log2(256 - i))))
#     else:
#         w.append(1.0)





cutUp1 = 32
cutUp2 = 253
for i in range(256):
    if i == 0 or i == 255:
        w.append(0)
    elif i <cutUp1:
        w.append(i**2/(cutUp1**2))
    elif i>cutUp2:
        w.append((255-i)**2/(255-cutUp2)**2)
    else:
        w.append(1.0)


for i in range(256):
    print("{0},//{1}".format(w[i], i))



